package com.pym.bs.enums;

import com.pym.bs.vo.CertificatesVO;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

@Getter
public enum DropEnum {

    Choose1("选择一",1),

    choose2("选择二",2),

    Choose3("选择三",3),

    choose4("选择四",4),
    ;

    private String message;

    private Integer value;

    DropEnum(String message, Integer value) {
        this.message = message;
        this.value = value;
    }

    public static List toList(){
        List<CertificatesVO> list = new ArrayList();
        for (DropEnum dropEnum : DropEnum.values()){
            CertificatesVO certificatesVO = new CertificatesVO();
            certificatesVO.setLabel(dropEnum.message);
            certificatesVO.setValue(dropEnum.value);
            list.add(certificatesVO);
        }
        return list;
    }
}
